from django.db import models

# Create your models here.
#用户登录账号表
class login_user(models.Model):
    userId = models.CharField(verbose_name="登陆账号",max_length=20,primary_key=True,null=False,blank=False)
    userPwd = models.CharField(verbose_name="登陆密码",max_length=200,null=False,blank=False)
    userName = models.CharField(verbose_name="用户名",max_length=50,null=True)
    userStatus = models.BooleanField(verbose_name="状态",null=False,default=1)
    department = models.CharField(verbose_name="部门",max_length=50,null=True)
    emailAddress = models.CharField(verbose_name="邮箱地址",max_length=120,null=True)
    last_login = models.DateTimeField(verbose_name="上次登录时间",null=True)
    createUser = models.DateTimeField(verbose_name="创建时间",null=True)
    editUser = models.DateTimeField(verbose_name="编辑时间",null=True)

    class Meta:
        managed = True
        app_label = "usermanage"
        db_table="userAccount"
        verbose_name="用户信息"
        verbose_name_plural="Account"
    def __str__(self):
        return "%s" % self.userName
